package com.openway.game.personage;

import com.openway.game.exception.PersonageMovingException;

/**
 * All game personages that can move should be subclasses of this class.
 *
 * @author Created: 02.03.12 17:25
 * @version $Date$ $Revision$
 */
public abstract class AbstractMovingGameObject extends AbstractGameObject implements MovingGameObject {

    protected AbstractMovingGameObject() {
    }

    /**
     * Default realization of {@link com.openway.game.personage.MovingGameObject#makeMove()}
     *
     * @throws PersonageMovingException if this object can not move.
     */
    @Override
    public void makeMove() {
        throw new PersonageMovingException("This object can not make a move");
    }
}
